package com.lin.reggie.mapper;

import com.lin.reggie.entity.User;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

    //通过手机号码查询是否用户人已存在
    User findByPhone(String phone);

    //添加账户
    void save(User dbUser);

    @Select("select * from user where id=#{userId}")
    User findById(Long id);

}
